<template>
  <div>
    <div class="second">
      <div class="steps">
        <p v-for="(item, index) in list" :key="index">
          {{ item.id }}.{{ item.title }}
          <span v-show="item.flag"></span>
        </p>
      </div>
      <h1>购买服务</h1>
      <div class="card">
        <div class="up">
          <div class="leftCard">
            <img src="@/assets/Di/组23(1).png" alt="" />
          </div>
          <div class="right">
            <div class="one">
              <p>电话咨询</p>
              <p>限时特惠</p>
            </div>
            <div class="two">
              <p>规格:24小时</p>
              <p>特惠价:￥69.9</p>
              <img src="@/assets/Di/组23(2).png" alt="" />
            </div>
          </div>
        </div>
        <div class="down">
          <div>99%好评率</div>
          <div>即将恢复价格169.9元</div>
          <div>2299人已抢</div>
        </div>
      </div>
      <!-- 律师服务 -->
      <div class="attorney">
        <div class="attorney-one">
          <h1>以下律师将会为您服务:</h1>
          <img src="@/assets/Di/全国累计1万余名律师入驻.png" alt="" />
        </div>
        <Attorney />
      </div>
    </div>
  </div>
</template>

<script>
import Attorney from "./Attorney.vue";
export default {
  components: {
    Attorney,
  },
  data() {
    return {
      list: [
        {
          id: 1,
          title: "支付订单",
          flag: true,
        },
        {
          id: 2,
          title: "律师接单",
          flag: true,
        },
        {
          id: 3,
          title: "极速服务",
          flag: true,
        },
        {
          id: 4,
          title: "服务评价",
          flag: false,
        },
      ],
    };
  },
};
</script>


<style scoped lang="scss">
.second {
  width: 100%;
  height: 7rem;
  background-color: white;
  border-radius: 0.25rem;
  position: relative;
  top: -0.9rem;
  padding-left: 0.31rem;
  box-sizing: border-box;
  .steps {
    height: 0.93rem;
    padding-top: 0.23rem;
    box-sizing: border-box;
    display: flex;
    p {
      flex: 1;
      font-size: 0.26rem;
      color: #aaaaaa;
      &:nth-of-type(1) {
        color: #333333;
      }
      span {
        width: 0.1rem;
        height: 0.17rem;
        display: inline-block;
        background-image: url(@/assets/Di/形状10.png);
        background-position: center;
        background-size: contain;
        position: relative;
        left: 0.1rem;
      }
    }
  }
  h1 {
    font-size: 0.32rem;
    color: #333333;
    margin-bottom: 0.31rem;
  }
  .card {
    width: 6.87rem;
    height: 2.01rem;
    background-image: url(@/assets/Di/组23.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 0.22rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    .up {
      display: flex;
      .leftCard {
        img {
          width: 0.86rem;
          height: 0.86rem;
          margin: 0.29rem 0 0.2rem 0;
        }
      }
      .right {
        margin-left: 0.11rem;
        .one {
          display: flex;
          p {
            &:nth-of-type(1) {
              width: 4.5rem;
              color: #333333;
              margin-top: 0.34rem;
              font-size: 0.3rem;
            }
            &:nth-of-type(2) {
              margin-top: 0.12rem;
              font-size: 0.26rem;
              color: #ffffff;
              float: right;
            }
          }
        }
        .two {
          display: flex;
          p {
            &:nth-of-type(1) {
              width: 2.5rem;
              font-size: 0.24rem;
              line-height: 0.5rem;
              color: #aaaaaa;
            }
            &:nth-of-type(2) {
              font-size: 0.24rem;
              line-height: 0.4rem;
              color: #eb4140;
            }
          }
          img {
            width: 1.38rem;
            height: 0.41rem;
            margin-left: 0.1rem;
          }
        }
      }
    }
    .down {
      display: flex;
      div {
        font-size: 0.24rem;
        color: #aaaaaa;
        padding-right: 0.24rem;
        &:nth-of-type(1) {
          font-size: 0.28rem;
          color: #ffd800;
          flex: 1;
          line-height: 0.3rem;
        }
      }
    }
  }
  .attorney {
    .attorney-one {
      margin-top: 0.48rem;
      display: flex;
      img {
        width: 3.06rem;
        height: 0.4rem;
        margin-left: 0.56rem;
        margin-top: 0.03rem;
      }
    }
  }
}
</style>